<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>王者荣耀竞猜管理平台</title>
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css"
          href="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/themes/icon.css">
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/jquery.min.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/jquery.easyui.min.js"></script>
     <script type="text/javascript"
            src="${pageContext.request.contextPath}/static/jquery-easyui-1.5.3/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
<div align="center">
    <form id="ff" method="post" action="/sessionInfo/update">
        <input type="hidden" name="fdId" value="${sessionInfo.fdId}">
        <table cellpadding="5">

            <%--<tr>--%>
                <%--<td>所属房间：</td>--%>
                <%--<td><input class="easyui-textbox" type="text" id="fdRoomId" name="fdRoomId" value="${sessionInfo.fdRoomId}"--%>
                           <%--data-options="required:true"/></td>--%>
            <%--</tr>--%>

            <%--<tr>--%>
                <%--<td>：</td>--%>
                <%--<td><input class="easyui-textbox" type="text" id="fdRoomName" name="fdRoomName" value="${sessionInfo.fdRoomName}"--%>
                           <%--data-options="required:true"/></td>--%>
            <%--</tr>--%>

                <tr>
                    <td>所属房间：</td>
                    <td><input type="text" id="fdRoomId" name="fdRoomId" class="easyui-combobox" data-options="
                    required:true,
                    valueField: 'fdId',
                    textField: 'fdName',
                    editable:false,
                    url: '/roomInfo/comboList',
                    onSelect:function(record){
                        $('#fdRoomName').val(record.fdName);
                    },
                    onLoadSuccess: function (data) {
                       <%--$('#fdRoomId').combobox('select', data[0].fdId);--%>
                       var aId = $('#cfdRoomId').val()
                       $('#fdRoomId').combobox('select', aId);

                    }"/>
                        <input type="hidden" name="fdRoomName" id="fdRoomName" value="${sessionInfo.fdRoomName}">
                        <input type="hidden" name="cfdRoomId" id="cfdRoomId" value="${sessionInfo.fdRoomId}">

                    </td>
                </tr>

                <tr>
                <td>当前场次：</td>
                <td><input class="easyui-textbox" type="text" id="fdSessionNum" name="fdSessionNum" value="${sessionInfo.fdSessionNum}"
                           data-options="required:true"/></td>
            </tr>

            <tr>
                <td>A队击杀人数：</td>
                <td><input class="easyui-textbox" type="text" id="fdSingleClanAKillNum" name="fdSingleClanAKillNum" value="${sessionInfo.fdSingleClanAKillNum}"
                           data-options="required:true"/></td>
            </tr>

            <tr>
                <td>B队击杀人数：</td>
                <td><input class="easyui-textbox" type="text" id="fdSingleClanBKillNum" name="fdSingleClanBKillNum" value="${sessionInfo.fdSingleClanBKillNum}"
                           data-options="required:true"/></td>
            </tr>

            <tr>
                <td>A队单场赔率：</td>
                <td><input class="easyui-textbox" type="text" id="fdSingleAScale" name="fdSingleAScale" value="${sessionInfo.fdSingleAScale}"
                           data-options="required:true"/></td>
            </tr>

            <tr>
                <td>B对单场赔率：</td>
                <td><input class="easyui-textbox" type="text" id="fdSingleBScale" name="fdSingleBScale" value="${sessionInfo.fdSingleBScale}"
                           data-options="required:true"/></td>
            </tr>

            <tr>
                <td>大小单双赔率：</td>
                <td><input class="easyui-textbox" type="text" id="fdSingleSizeScale" name="fdSingleSizeScale" value="${sessionInfo.fdSingleSizeScale}"
                           data-options="required:true"/></td>
            </tr>

            <tr>
                <td>特码赔率：</td>
                <td><input class="easyui-textbox" type="text" id="fdSingleSpecialScale" name="fdSingleSpecialScale" value="${sessionInfo.fdSingleSpecialScale}"
                           data-options="required:true"/></td>
            </tr>

            <%--<tr>--%>
                <%--<td>比赛结果：</td>--%>
                <%--<td><input class="easyui-textbox" type="text" id="fdSingleResult" name="fdSingleResult" value="${sessionInfo.fdSingleResult}"--%>
                           <%--data-options="required:true"/></td>--%>
            <%--</tr>--%>


            <tr>
                <td>比赛结果：</td>
                <td><input type="radio" name="fdSingleResult" data-options="required:true"
                           value="-1" ${sessionInfo.fdSingleResult == -1 ? 'checked':''}/>A方胜
                    <input type="radio" name="fdSingleResult" data-options="required:true"
                           value="1"  ${sessionInfo.fdSingleResult == 1 ? 'checked':''}/>B方胜
                    <input type="radio" name="fdSingleResult" data-options="required:true"
                           value="0"  ${sessionInfo.fdSingleResult == 0 ? 'checked':''}/>比赛中
                    <input type="radio" name="fdSingleResult" data-options="required:true"
                           value="-2"  ${sessionInfo.fdSingleResult == -2 ? 'checked':''}/>未开始
                </td>
            </tr>



            <tr>
                <td>当前场次预计开盘时间：</td>
                <td>
                    <%--<input class="easyui-textbox" type="text" id="fdSingleStartTime" name="fdSingleStartTime"--%>
                    <%--data-options="required:true"/>--%>
                    <input class="easyui-datetimebox" name="fdSingleStartTime"
                           data-options="required:true,showSeconds:true,editable:false" value="${sessionInfo.fdSingleStartTime}"/>

                </td>
            </tr>

            <tr>
                <td>当前场次预计封盘时间：</td>
                <td>
                    <%--<input class="easyui-textbox" type="text" id="fdSingleEndTime" name="fdSingleEndTime"--%>
                    <%--data-options="required:true"/>--%>
                    <input class="easyui-datetimebox" name="fdSingleEndTime"
                           data-options="required:true,showSeconds:true,editable:false"  value="${sessionInfo.fdSingleEndTime}">

                </td>
            </tr>


            <%--<tr>--%>
                <%--<td>是否结算：</td>--%>
                <%--<td><input class="easyui-textbox" type="text" id="fdSingleIsSettle" name="fdSingleIsSettle" value="${sessionInfo.fdSingleIsSettle}"--%>
                           <%--data-options="required:true"/></td>--%>
            <%--</tr>--%>

            <tr>
                <td>是否结算：</td>
                <td>
                    <input type="radio" name="fdSingleIsSettle" data-options="required:true"
                           value="1"  ${sessionInfo.fdSingleIsSettle == 1 ? 'checked':''}/>结算
                    <input type="radio" name="fdSingleIsSettle" data-options="required:true"
                           value="0"  ${sessionInfo.fdSingleIsSettle != 1 ? 'checked':''}/>未结算
                </td>
            </tr>

        </table>
    </form>
    <div style="text-align:center;padding:5px">
        <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提交</a>
        <a href="javascript:void(0)" style="margin-left: 20px" class="easyui-linkbutton" onclick="clearForm()">重置</a>
    </div>
</div>
</body>
<script src="${pageContext.request.contextPath}/static/pages/sessionInfo/edit.js"></script>
</html>
